PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-04-18 10:22:17.133903+00:00 (UTC)
In US/Central Time, this is 2024-04-18 05:22:17.133903-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/1e5644a2adb2e9f92b2a0b23295c98878f041126bfe5914b16ad33e2a09feab6.png
We are just generating a random time serie here.
../_images/7914b615d26e3af0482dbba3309acabb1206311be64494dee20d355484092f00.png
../_images/49aaf8cb40c7c24732d8bbcf0a45aee072eb1646efaeeb353ebdd2708447fa34.png